import request from "@/config/index.js"
// 
export function homeServerList() {
  return request("/server/query/home",null,"get",false)
}
// 
export function categoryServerList(data) {
  return request("/server/query/category",data,"post",false)
}
// 服务管理列表
export function serviceListApi() {
  return request("/service/query/mine",null,"get",false)
}
//个人信息保存
export function userInfoSave(data) {
  return request("/server/update",data,"post",false)
}
//服务类别
export function categoryListApi() {
  return request("/category/query/all",null,"get",false)
}



//创建服务信息
export function serviceSaveApi(data) {
  return request("/service/update",data,"post",false)
}

//创建服务信息
export function serviceDetailApi(data) {
  return request(`/service/detail/${data}`,null,"post",false)
}
// 删除服务
export function serviceDelApi(data) {
  return request(`/service/remove/${data}`,null,"post",false)
}
//查询服务人员信息
export function serverDetailApi(data) {
  return request(`/server/detail/${data}`,null,"post",false)
}
// 服务启停
export function serverStatusApi(data) {
  return request(`/server/switch/status`,data,"post",false)
}
/*
首页
*/
// 首页服务类别
export function categoryHomeApi(data) {
  return request(`/category/query/home`,data,"get",false)
}
// 首页服务列表
export function serviceHomeApi(data) {
  return request(`/service/query/home`,data,"get",false)
}
// 服务人员服务产品
export function serviceUidApi(uid) {
  return request(`/service/query/his/${uid}`,null,"get",false)
}
// 服务人员评价列表
export function serviceEvaluateApi(data) {
  return request(`/evaluate/query`,data,"get",false)
}
// 评论标签
export function serviceEvaluateMarkApi(data) {
  return request(`/evaluate/evaluateMark/query`,data,"get",false)
}

//保存评价
export function evaluateApi(data) {
  return request(`/evaluate/create`,data,"post",false)
}
//评价打标
export function evaluateMarkApi(data) {
  return request(`/evaluate/evaluateMark`,data,"post",false)
}


export function expedit(data) {
  return request(`/server/exp/edit`,data,"post",false)
}